/**
 * 
 */
package org.xlab.baseframework.web;

import org.xlab.baseframework.web.component.SystemMainWindow;

import com.vaadin.Application;

/**
 * @author MaKuBEX
 * 
 */
public class BaseframeworkApplication extends Application {

	/**
	 * @serialField
	 */
	private static final long serialVersionUID = -7501988177994586133L;

	public SystemMainWindow mainWindow;

	/**
	 * @param mainWindow
	 */
	public BaseframeworkApplication(SystemMainWindow mainWindow) {
		super();
		this.mainWindow = mainWindow;
	}

	/**
	 * @see com.vaadin.Application#init()
	 */
	public void init() {
		super.setMainWindow(mainWindow);
		mainWindow.showWelcome();
	}

}
